
import set from '@dfeidao/atom-web/global/set';
import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import render from '@dfeidao/atom-web/render/render';
import p001 from './p001';


export default async function a008(fd: IFeidaoAiBrowserComponent, arr1: object, d: number) {
	// todo
	// const zcr = fd.data.node.querySelector<HTMLInputElement>('[data-id="meeting_host"]');
	// const no = get('arr');
	// zcr.title = no[0].staff_no;
	// zcr.value = no[0].staff_name;
	// 点击时渲染到页面中

	set('d', d);

	const arr2 = Array();
	for (let i = 0; i < d; i++) {
		arr2.push(JSON.parse(arr1[i]));

	}
	console.log(arr2);

	// for (let j = 0; j < arr1.length; j++) {
	// 	if (arr1[j] === arr1[j + 1]) {
	// 		// delete (arr1[j + 1]);
	// 		arr1[j+1];
	// 		console.log('asdfasgd ');

	// 	}
	// }
	console.log(arr1);

	set('arr1', arr2.length);
	render(fd, arr2, p001, 'p001', 'lastin');


}
